//q2a.cpp
//The program takes 4 integers and prints the highest one
//
//Binyamin 22 december 2017
//-----------------------------------------------------------
#include <iostream>
#include <stdlib.h>

using namespace std;

int __max(int a, int b)
{
	if(a>b) return a;
	return b;
}
//1. prompt the user for four numbers.
//2. store it to num[0-3]
//3. calculate the highest number
//4. print the highest number

int main()
{
	int num0, num1, num2, num3; //num* - four numbers from the user.
	int max; //max - the highest number.
	cout << "Please enter four numbers" << endl;
	cin >> num0 >> num1 >> num2 >> num3;
	max = __max(__max(__max(num3,num2),num1),num0);
	cout << "The highest number is " << max << endl;
	return 0;
}
//output
//Please enter four numbers
//12 13 14 15
//The highest number is 15
